.class Lcom/waiqin365/lightapp/product/de;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    const/4 v4, 0x0

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    move-object v0, p1

    check-cast v0, Landroid/widget/TextView;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Landroid/widget/TextView;)Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->b(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Z)Z

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/h;

    sget-object v2, Lcom/waiqin365/lightapp/product/s;->o:Lcom/waiqin365/lightapp/product/s;

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v3}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->j(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v3

    iget-object v3, v3, Lcom/waiqin365/lightapp/product/d/g;->d:Lcom/waiqin365/lightapp/product/s;

    if-ne v2, v3, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    iget-object v3, v0, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-static {v2, v0, v3}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->p(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v2, v0, v1, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->c(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v2, v0, v1, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->c(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->I(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/offlinedata/w;->c(Ljava/lang/String;)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v0

    if-nez v0, :cond_2

    new-instance v0, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    const-string/jumbo v2, "-1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    const v3, 0x7f0802dd

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v2, v0, v1, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->c(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v2, v0, v1, v4}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->a(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Lcom/waiqin365/lightapp/product/d/h;Ljava/lang/String;Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->u(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_3

    move-object v0, v1

    :goto_1
    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->c(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/de;->a:Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;->u(Lcom/waiqin365/lightapp/product/ProductSelectActivityNew;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1
.end method
